package gxnu.edu.cn.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
/**
 * <p>
 * 用户表
 * </p>
 *
 * @author cq
 * @since 2025-05-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cuser")
@ApiModel(value="Cuser对象", description="用户表")
@NoArgsConstructor
public class Cuser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增长，账户ID")
    @TableId(value = "userID", type = IdType.AUTO)
    private Integer userID;

    @ApiModelProperty(value = "口令")
    @TableField("passWord")
    private String passWord;

    @ApiModelProperty(value = "账户名，唯一")
    @TableField("userName")
    private String userName;

    @ApiModelProperty(value = "目前所在组")
    @TableField("groupName")
    private String groupName;

    @ApiModelProperty(value = "权限角色")
    @TableField("permissionRole")
    private Boolean permissionRole;

    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "失败登录次数")
    @TableField("failedLoginNum")
    private Integer failedLoginNum;

    @ApiModelProperty(value = "账户锁定状态")
    @TableField("accountLocked")
    private Integer accountLocked;

    @ApiModelProperty(value = "用户组ID")
    @TableField("userGroupID")
    private Integer userGroupID;


    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public Integer getUserID() {
        return userID;
    }

    public void setUserID(Integer userID) {
        this.userID = userID;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Boolean getPermissionRole() {
        return permissionRole;
    }

    public void setPermissionRole(Boolean permissionRole) {
        this.permissionRole = permissionRole;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getFailedLoginNum() {
        return failedLoginNum;
    }

    public void setFailedLoginNum(Integer failedLoginNum) {
        this.failedLoginNum = failedLoginNum;
    }

    public Integer getAccountLocked() {
        return accountLocked;
    }

    public void setAccountLocked(Integer accountLocked) {
        this.accountLocked = accountLocked;
    }

    public Integer getUserGroupID() {
        return userGroupID;
    }

    public void setUserGroupID(Integer userGroupID) {
        this.userGroupID = userGroupID;
    }

}
